package user

import (
	"github.com/gin-gonic/gin"
)

func Routers(r *gin.Engine)  {
	// v1
	v1 := r.Group("/v1")
	{
		v1.POST("/login", Login)
		v1.POST("/logout", Logout)
		v1.POST("/register", Register)
	}

	// v2
	v2 := r.Group("/v2")
	{
		v2.GET("/ping", Ping)
	}
}